package com.exsun.ex1077.ui.activity.login

import android.os.Bundle
import com.exsun.ex1077.app.Constant
import com.exsun.ex1077.databinding.ActivityRegisterRoleBinding
import com.zhangping.fastjetpack.base.BaseActivity
import com.zhangping.fastjetpack.base.BaseViewModel
import com.zhangping.fastjetpack.extend.toActivity
import kotlinx.android.synthetic.main.activity_register_role.*

/**
 * 描述：注册角色选择
 * 作者：ZhangPing
 * 创建时间：2023/3/15 11:00
 */
class RegisterRoleActivity: BaseActivity<BaseViewModel, ActivityRegisterRoleBinding>() {

    override fun initView(savedInstanceState: Bundle?) {
        mDatabind.vm = mViewModel
        super.initView(savedInstanceState)
        person.setOnClickListener {
            toActivity<RegisterActivity>(Bundle().apply {
                putInt("pageType", Constant.PAGE_TYPE_REGISTER_PERSON)
            })
        }
        company.setOnClickListener {
            toActivity<RegisterActivity>(Bundle().apply {
                putInt("pageType", Constant.PAGE_TYPE_REGISTER_COMPANY)
            })
        }
    }

}